package cn.jaye.fabric.common.constant;

/**
 * 全局常量定义
 * Created by Jaye on 2017/7/10.
 */
public class Global {

    public static final String LOG_PARA_SERVICE_NAME = "microservicename";
    public static final String LOG_PARA_URL = "url";
    public static final String LOG_PARA_HTTP_METHOD = "http_method";
    public static final String LOG_PARA_PARAS = "paras";
    public static final String LOG_PARA_RESPONSE = "response";

    public static final String DATA_EXECUTE_RESULT = "executeResult";

    public static final String ACCESSPOINT_PARA_ENCRYPTED = "paraEncrypted";
    public static final String DATA_SUCCESS_NUM = "successNum";

    public static final String X_HNA_TENANT = "x-hna-tenant";

    public static final Integer SUCCESS_FLAG = 1000;

    public static final String COOKIE_NAME = "HNA_APP_TOKEN";

    public static final int COOKIE_MAX_AGE = 2592000;

    public static final String SYSTEM_ACCESSPOINT_ID = "defaultaccesspoint";
    public static final String SYSTEM_ACCESSPOINT_SIGNKEY = "kY3US))Sm6kmNsno";
    public static final String SYSTEM_ACCESSPOINT_AES_KEY = "NusE)2)2I6Ve{WQq";
    public static final String SYSTEM_ACCESSPOINT_AES_IV = "e3Rfg!1yf5Cw7(Hl";
    public static final String SYSTEM_CHANNEL = "test";

    public static final String FABRRIC_GATEWAY_ADDRESS = "http://localhost:8080";

    public static final String TEST_USERNAME = "test";
    public static final String TEST_PASSWORD = "ChHNjnIXBenl";
    public static final String TEST_ORGID = "orgid2";
    public static final Integer MATCH_STATE_NORMAL = 0;  //正常状态
    public static final Integer MATCH_STATE_FINUSHED = 1; //已经结束
    public static final Integer MATCH_STATE_COUNTED = 2;  //已统计
    public static final Integer MATCH_STATE_NOT_BEGINNING = 3;//未开始
    public static final Integer MATCH_STATE_ABNORMAL = 4;  //异常状态

    public static final Integer GUESS_STATE_NORMAL = 0;//竞猜中
    public static final Integer GUESS_STATE_COUNTED = 1;  //已统计

    public static final String CHAINCODE_FUNC_REGIST = "registAccount";
    public static final String CHAINCODE_FUNC_INFO = "infoAccount";
    public static final String CHAINCODE_FUNC_TRANSFER = "transfer";
}
